package tr3dtris.game.display;

import javax.swing.JPanel;
import tr3dtris.game.Game;

/**
 * Abstract display class. Abstract class used to build the graphic engine.
 * This is very useful to build different graphics systems such as 2D and 3D
 * visualizations and also to keep graphics, data and controls apart.
 * @author Luciano Mammino <loige@hotmail.com>
 * @author Andrea Mangano <kapitan0@hotmail.it>
 * @version 0.1
 * @since 0.1
 */
public abstract class AbstractDisplay extends JPanel implements IDisplay
{

    /**
     * Reference to the connected game class
     */
    protected Game game;

    /**
     * Blank contructor
     */
    public AbstractDisplay()
    {}

    /**
     * Constructor
     * @param game the connected game
     */
    public AbstractDisplay(Game game)
    {
        this.game = game;
    }

    public void configure()
    {}

    /**
     * @return the game
     */
    public Game getGame()
    {
        return game;
    }

    /**
     * @param game the game to set
     */
    public void setGame(Game game)
    {
        this.game = game;
    }
}
